$env:GOOS = "windows"
$env:GOARCH = "amd64"

# 编译 Go 程序
go build -ldflags "-X main.version=$(git describe --tags --always)" -o dist/img2pdf_windows_amd64.exe

$env:GOARCH = "386"

# 编译 Go 程序
go build -ldflags "-X main.version=$(git describe --tags --always)" -o dist/img2pdf_windows_386.exe
